package com.douwong.student.model;
/**
 * 科目
 * @author leihuajie
 *
 */
public class SubjectObject implements Comparable<SubjectObject>{
	private int gradeId;
	public int getGradeId() {
		return gradeId;
	}
	public void setGradeId(int gradeId) {
		this.gradeId = gradeId;
	}
	public String getGradeName() {
		return gradeName;
	}
	public void setGradeName(String gradeName) {
		this.gradeName = gradeName;
	}
	public int getSubjectId() {
		return subjectId;
	}
	public void setSubjectId(int subjectId) {
		this.subjectId = subjectId;
	}
	public String getSubjectName() {
		return subjectName;
	}
	public void setSubjectName(String subjectName) {
		this.subjectName = subjectName;
	}
	private String gradeName;
	private int subjectId;
	private String subjectName;
	@Override
	public int compareTo(SubjectObject another) {
		if(another.getSubjectId()>subjectId){
			return -1;
		}else if(another.getSubjectId()<subjectId){
			return 1;
		}else{
			return 0;
		}
		
	}
}
